#!/bin/sh

ipaddr=$(ip -4 a show eth0 | grep inet | awk '{ print $2}')
ipaddr=${ipaddr%/*}
sed  "s/<LOCALHOST>/${ipaddr}/g" ./template.yml > ./docker-compose.yml 

sudo docker-compose up -d
docker ps -a |grep setup
